import request from "./request.js";
import mockRequest from "./mockRequest.js";

export const reqCategoryList = () => {
  return request({ url: "/product/getBaseCategoryList", method: "get" });
};
export const reqGetBannerList = () => {
  return mockRequest({ url: "/banner", method: "get" });
};
export const reqGetFloorList = () => {
  return mockRequest({ url: "/floor", method: "get" });
};
export const reqSearchList = (data) => {
  return request({ url: "/list", method: "post",data});
};
export const reqDetailList = (skuId) => {
  return request({url:`/item/${skuId}`, method: "get"});
};
export const reqAddOrUpdataShopCart = (skuId,skuNum) => {
  return request({url:`/cart/addToCart/${skuId}/${skuNum}`, method: "post"});
};
